/**
 * Created with JetBrains WebStorm.
 * User: Administrator
 * Date: 13-6-7
 * Time: 上午11:27
 * To change this template use File | Settings | File Templates.
 */

Ext.define('cloud.view.message.MessageEdit', {
    extend: 'Ext.form.FormPanel',
    xtype: 'messageedit',

    requires: ['Ext.form.Panel', 'Ext.form.FieldSet', 'Ext.field.Toggle', 'Ext.field.Select', 'Ext.ux.Fileup', 'Ext.Img', 'Ext.dataview.DataView'],
    config: {
        title: '编辑Message',
        items: [
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'end'
                },
                items: [
                    {
                        id: 'message_edit',
                        iconMask: true,
                        scope: this,
                        text: '更新',
                        cls: 'x-button2',
                        style: 'float:right'
                    },
                    {
                        id: 'message_del',
                        iconMask: true,
                        scope: this,
                        cls: 'x-button2',
                        text: '删除',
                        style: 'float:right'
                    }
                ]
            },
            { xtype: 'fieldset',
                // id: 'fieldset',
                defaults: {
                    labelwidth: '20%',
                    xtype: 'textfield',
                    required: true,
                    clearIcon: true
                },
                items: [
                    {
                        id: 'messageedit_cuid',
                        name: 'cuid',
                        label: '用户ID',
                        maxLength: 50,
                        hidden: true

                    },
                    {
                        id: 'messageedit_cadid',
                        name: 'cadid',
                        label: '所在开通地区ID',
                        maxLength: 50,
                        hidden: true
                    },
                    {
                        id: 'messageedit_cmid',
                        name: 'cmid',
                        label: '问题留言ID',
                        maxLength: 50,
                        hidden: true
                    },
                    {
                        name: 'messages',
                        label: '客户留言',
                        maxLength: 50,
                        readOnly: true

                    },
                    {
                        id: 'messageedit_mestype',
                        name: 'replytype',
                        label: '留言类型',
                        maxLength: 50,
                        readOnly: true
                    },
                    {
                        id: 'messageedit_remessage',
                        name: 'remessage',
                        label: '管理员回复',
                        maxLength: 50,
                        placeHolder: '请输入。。'
                    }
                ]

            }
        ]
    }
});

